let mongoose = require('mongoose');
let mongoosePaginate = require('mongoose-paginate');//分页模块
var student = new mongoose.Schema({
  username:String,
  password:Number,
  studentId:Number,
  name:String,
  sex:String,
  age:Number,
  phone:Number,
  email:String,
  address:String,
  ctime:{ type: Date, default: Date.now()},
});
student.plugin(mongoosePaginate);//分页
//3.创建model对象
module.exports = mongoose.model('student',student);
